package zoo.order.validator;

import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

import zoo.order.domain.OrderCommand;

public class OrderValidator implements Validator {

	public boolean supports(Class<?> clazz) {
		return OrderCommand.class.isAssignableFrom(clazz);
	}

	public void validate(Object target, Errors errors) {
		OrderCommand command = (OrderCommand) target;	
	}
}